// PHSTextSetting.h: interface for the PHSTextSetting class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_PHSTEXTSETTING_H__D67B5050_44C9_4F5C_AFB9_9A41F926B01B__INCLUDED_)
#define AFX_PHSTEXTSETTING_H__D67B5050_44C9_4F5C_AFB9_9A41F926B01B__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "phssetting.h"
#include "TextProperty.h"
#include <afxtempl.h>
#include "TextStyle.h"

class PHSTextSetting : public PHSSetting  
{
public:
	PHSTextSetting();
	virtual ~PHSTextSetting();

public:
	virtual BOOL InitSetting();
	virtual BOOL SaveSetting();

	TextProperty* FindTextProperty(const CString& strTextContentName);
	TextProperty* GetFirstProperty();
	TextProperty* GetNextProperty();

	TextStyle* FindTextStyle(const CString& strStyleName);
	TextStyle* GetFirstStyle();
	TextStyle* GetNextStyle();
	void AddStyle(TextStyle* pStyle);

private:
	void GetPropertyStyle(TextProperty* pProperty);

private:
	CArray<TextProperty*, TextProperty*> m_theTexts;
	CArray<TextStyle*, TextStyle*> m_theStyles;

	INT m_nIndex;
	INT m_nStyleIndex;
};

#endif // !defined(AFX_PHSTEXTSETTING_H__D67B5050_44C9_4F5C_AFB9_9A41F926B01B__INCLUDED_)
